# tools
CC := gcc
RM := rm -f

# flags
CFLAGS := -ggdb
LDFLAGS :=
LDLIBS :=

# sources
sources := sploit1.c sploit2.c sploit3.c sploit4.c sploit5.c
targets := $(sources:.c=)

# gmake magic
.PHONY: default all clean

#targets
default: all
all: $(targets)

clean:
	$(RM) $(targets) $(sources:.c=.o) sploits.tar.gz

dist: all clean
	if test -f ID;\
	then echo Using the following ID file; cat ID;\
	tar -czvf sploits.tar.gz *;\
	else echo Please create an ID file containing your netid and names.;\
	fi

#dependencies
$(sources:.c=.o): shellcode.h
